package com.xiumu.search.model.elasticsearch;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @author xiumu
 * @version 1.0
 * @date 2020/11/7 19:12
 */
@Data
@Document(indexName = "xiumu_user")
public class UserInfo {

    @Id
    private String id;
    /**
     * 姓名
     */
    private String username;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 性别
     */
    private Character gender;
    /**
     * 个性签名
     */
    private String description;
}
